﻿using System;
using BIS.Portal.Core.Base;
using BIS.Portal.Core.Global;
using BIS.Portal.Modules.CMS.Entity;
using BIS.Portal.Modules.CMS.BO;
using BIS.Utility.Converter;

namespace BIS.Portal.Modules.CMS
{
    public partial class CmsFreeText : ControlBase
    {
        #region Load Data Settings

        public string ArticleFreeText
        {
            get
            {
                return GetControlSetting<string>(ModuleSettingNames.CmsFreeText.ddlArticleFreeText,
                                                 PortalContext.LanguageAlias);
            }
        }
        #endregion
        protected void Page_Load(object sender, EventArgs e)
        {
            loaddata();
        }
        private void loaddata()
        {
            ClientCmsArticleFreeTextEntity objFT =
                ClientCmsArticleBO.GetArticleContentFreeText(PortalContext.LanguageInUseId,Functions.GetInt(ArticleFreeText));
            Noi_Dung_Tin.Text = objFT.ArticleContent;
        }
    }
}